<%@ page import="sy.pageModel.BaseEntity" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<script type="text/javascript">
    $(function(){
        $.ajax({
            url: "${pageContext.request.contextPath}/partnerController/find_dept.action",    //请求的url地址
            async: false, //请求是否异步，默认为异步，这也是ajax重要特性
            data: {},    //参数值
            type: "POST",   //请求方式
            success: function(data) {
                var data=JSON.parse(data);
                $("#dept_type_dept").append(data["obj"])
                //请求成功时处理
            }
        });
        $.ajax({
            url: "${pageContext.request.contextPath}/partnerController/find_dept_type.action",    //请求的url地址
            async: false, //请求是否异步，默认为异步，这也是ajax重要特性
            data: {},    //参数值
            type: "POST",   //请求方式
            success: function(data) {
                var data=JSON.parse(data);
                $("#dept_type_2").append(data["obj"])
                //请求成功时处理
            }
        });
        editor.render("infoAttentionEditor");
        editor1.render("infoAttentionEditor_1");
    })
</script>
<div align="center">
    <form id="admin_infoAdd_addForm" method="post">
        <table class="tableForm">
            <tr>
                <th>栏目编号</th><td><input name="id" class="easyui-numberbox" data-options="required:true" disabled placeholder="自动生成"/></td>
                <th>栏目名称</th><td><input name="name" class="easyui-validatebox" data-options="required:true"/></td>
            </tr>
            <tr>
                <th>所属单位</th><td><select name="deptId" class="easyui-validatebox" id="dept_type_dept" style="width: 150px" ></select></td>
                <th>所属栏目</th><td><select name="typeId" class="easyui-validatebox" id="dept_type_2" style="width: 100%"></select></td>
            </tr>
            <tr>
                <th>展示图片</th>
                <td>
                    <input type="hidden" value="add" id="js-val">
                    <jsp:include page="file.jsp"></jsp:include>
                </td>
                <th>是否推荐</th>
                <td>
                    <jsp:include page="is_show.jsp"></jsp:include>
                </td>
            </tr>
            <tr>
                <th>环境特色</th><td><input name="hjtsId" class="easyui-validatebox"/></td>
                <th>疗养特色</th><td><input name="lytsId" class="easyui-validatebox" /></td>
            </tr>
            <tr>
                <th>栏目顺序</th><td><input name="order" class="easyui-validatebox" value="1000"/></td>
            </tr>
            <tr>
                <th>单位简介</th><td colspan=3></td>
            </tr>
            <tr>
                <td colspan=4><div id="infoAttentionEditor" style="width:99%;height:200px;"></div> <input type="hidden" id="infoDescs_hide" name="descs"></td>
            </tr>
            <tr>
                <th>注意事项</th><td colspan=3></td>
            </tr>
            <tr>
                <td colspan=4><div id="infoAttentionEditor_1" style="width:99%;height:200px;" ></div> <input type="hidden" id="infoAttention_hide" name="attention"></td>
            </tr>
        </table>
    </form>
</div>